<%-- 
    Document   : oracleDriver
    Created on : 2019-9-4, 9:05:25
    Author     : danny
--%>

<%@page import="java.sql.DriverManager"%>
<%@page import="java.sql.Connection"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%--
    /*
        权限控制代码
    */
    String loginUser = (String) session.getAttribute("LOGIN_USER");
    if (loginUser == null) {
        request.setAttribute("error", "您还未登录！");
        request.getRequestDispatcher("../login.jsp").forward(request, response);
    }
--%>
<%
Class.forName("oracle.jdbc.driver.OracleDriver");
String url = "jdbc:oracle:thin:@localhost:1521:orcl";
String user = "danpleny";
String pwd = "123456";
Connection con = DriverManager.getConnection(url, user, pwd);
%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>
        <h1>Hello World!</h1>
    </body>
</html>
